package com.ruoyi.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医生评价对象 comment
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价表id */
    private Long id;

    /** 医生id */
    @Excel(name = "医生id")
    private Long dockerId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 评分 */
    @Excel(name = "评分")
    private Long score;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String comment;

    /** 删除状态，0未，1删除 */
    @Excel(name = "删除状态，0未，1删除")
    private Long del;

    //医生姓名
    private String dName;

    //用户
    private User user;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dockerId", getDockerId())
            .append("userId", getUserId())
            .append("score", getScore())
            .append("comment", getComment())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("del", getDel())
            .toString();
    }
}
